package cn.com.wangluotongxin.database.mysql.utils;

import cn.com.wangluotongxin.mysql.pojo.TableIndexVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SourceMySqlTableIndexesUtil {

    private final static String MAP_KEY = "index";

    private static Map<String, List<TableIndexVo>> indexMap = new HashMap<>();

    public static void set(String tableName, List<TableIndexVo> indexVos) {
        indexMap.put(tableName.concat("_").concat(MAP_KEY), indexVos);
    }

    public static List<TableIndexVo> get(String tableName) {
        return indexMap.get(tableName.concat("_").concat(MAP_KEY));
    }
}
